package net.aiion.weave.impl.cards.expressions;

import net.aiion.weave.spi.cards.expressions.CardExpression;

public class CardExpressionImpl implements CardExpression
{
    private final String prefix;
    private final String value;

    public CardExpressionImpl(final String aPrefix, final String aValue) {
        prefix = aPrefix;
        value = aValue;
    }

    @Override
    public String getPrefix() {
        return prefix;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.format("%s:%s", prefix, value);
    }
}
